﻿// Copyright 2007. Adobe Systems Incorporated. All Rights Reserved.
package com.adobe.captivate.events 
{
	import flash.events.Event;

	/**
	 * The CaptivateEvent class defines the base class for all events that will be fired by a captivate movie. 
     *
     *
     * @langversion 3.0
     * @playerversion Flash 9.0.28.0
	 */
	public class CPQuestionSubmitEvent extends CaptivateEvent 
	{
		public static const CPQUESTIONSUBMITEVENT:String = "CPQuestionSubmitEvent";
		protected var m_QuestionEventData:CPQuestionEventData;
		
		public function CPQuestionSubmitEvent(captivateVersion:String="",questionEventData:CPQuestionEventData=null,
			cancelable:Boolean = false)
		{
			super(CPQuestionSubmitEvent.CPQUESTIONSUBMITEVENT,captivateVersion,cancelable);
			m_QuestionEventData = questionEventData;
		}
		public override function clone():Event
		{
			return new CPQuestionSubmitEvent(captivateVersion,questionEventData,cancelable);
		}
		public function get questionEventData():CPQuestionEventData
		{
			return m_QuestionEventData;
		}
		public override function toString():String
		{
			return formatToString("CPQuestionSubmitEvent","type","bubbles","cancelable","eventPhase","captivateVersion","questionEventData");
		}
	}
}
